#include "bo3d.h"

BBDECL Ogre::AxisAlignedBox* __stdcall o_mesh_getBounds(Ogre::Entity* m)
{
	Ogre::AxisAlignedBox ab;
	Ogre::AxisAlignedBox* aab;

	try
	{
		ab = m->getBoundingBox();
		aab = new Ogre::AxisAlignedBox(ab);
	}
	catch(Ogre::Exception &e)
	{
		std::cout << e.getDescription() << std::endl;
	}

	return aab;
}